* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color:  #0280ff;
    font-family: 'Nunito', 'Times New Roman';

}

body {
    background-image: url('../resources/ui/casa/bricks.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: 0 0;
}

/* ----------------------------------------- NAV -------------------------------------------------------- */
nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.botones-nav a {
    text-decoration: none;
}

.botones-nav button {
    border: none;
    font-family: 'Nunito';
    background: transparent;
    color: #f7fdff;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.botones-nav button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.botones-nav button::after {
    content: attr(data-text);
    font-weight: 900;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
}

.botones-nav button:hover {
    color: #f7fdff;
    font-weight: 900;
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.botones-nav button:hover::before {
    transform: scaleX(1);
}

.botones-nav button:active {
    transform: translateY(0);
}

.nav-redirect-icon {
    height: 14px;
    width: 14px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.botones-nav button:hover .nav-redirect-icon {
    transform: translateX(2px);
}


.navegador {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 40px 0 30px;
    height: 56px;
    z-index: 100;
    position: relative;
    background-color: #0280ff;
}

.logo-nav {
    font-family: "Lilita One", Times New Roman;
    display: flex;
    flex-direction: row;
    margin-bottom: -20px;
    align-items: center;
    gap: 10px;

}

.logo-nav img {
    box-sizing: border-box;
    height: 50px;

}

.logo-link {
    text-decoration: none;
    color: #f7fdff;
    display: flex;
    align-items: end;

}

/* --------------------------------------------- BANNER NAV --------------------------------------------- */

.banner-wrap {
  position: absolute;
  top: 54px;
  left: 0;
  width: 100%;
  height: 0;
  padding-bottom: 5.6474%;
  overflow: visible;
  z-index: 50;
  pointer-events: none;
}

.banner-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

/* ---------------------------------------------- FOOTER ------------------------------------------------- */

footer {
    width: 100%;
    background: #333333;
    padding: 50px 40px 30px;
    color: #f7fdff;
    position: relative;
    overflow: hidden;
}



.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    justify-items: center;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-section img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.footer-logo-section img:hover {
    transform: scale(1.05) translateY(-3px);
}

.footer-logo-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 300px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h3 {
    font-family: 'Lilita One', 'Times New Roman';
    font-size: 24px;
    margin-bottom: 10px;
    color: #f7fdff;
    letter-spacing: 2px;
    font-weight: normal;
}

.footer-links a {
    color: #f7fdff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.85;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 20px;
    color: #aebffc;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-redirect-icon {
    height: 12px;
    width: 12px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-links a:hover .footer-redirect-icon {
    transform: translateX(2px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-social h3 {
    font-family: 'Lilita One', 'Times New Roman';
    font-size: 24px;
    color: #f7fdff;
    letter-spacing: 2px;
    font-weight: normal;
}

.xarxes-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.xarxes-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.xarxes-socials a:hover {
    background: #f7fdff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.xarxes-socials img {
    height: 24px;
    width: 24px;
    padding: 0;
    transition: filter 0.3s ease;
}

.xarxes-socials a:hover img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(97%) saturate(2455%) hue-rotate(201deg);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}
.footer-links-container{
            gap: 5px;

}

@media (max-width: 400px) {
 .footer-content {
        gap: 50px;
    }

    .xarxes-socials{
        gap: 5px;
    }

    .xarxes-socials  a{
        justify-content: center;
        width: 25px;
        height: 25px;
    }

    .xarxes-socials img {
        height: 18px;
        width: 18px;
    }

    footer {
        padding: 40px 20px 20px;
    }
    .footer-links-container{
        width: 90px;
        line-height: 1.7;
        gap: 5px;
    }
}

/* -------------------------- MENU HAMBURGUESA -------------------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #f7fdff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* -------------------------- RESPONSIVE GLOBAL -------------------------- */

@media (max-width: 1024px) {
    .navegador {
        padding: 0 30px 0 20px;
    }

    .logo-nav h1 {
        font-size: 20px;
    }

    .logo-nav img {
        height: 40px;
    }

    .botones-nav button {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .navegador {
        height: auto;
        padding: 11.7px 20px
    }

    .logo-nav {
        margin-bottom: 0;
    }

    .logo-nav h1 {
        font-size: 18px;
    }

    .logo-nav img {
        height: 35px;
    }

    .menu-toggle {
        display: flex;
    }

    .botones-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #0280ff;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 10px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .botones-nav.active {
        right: 0;
    }

    .botones-nav button {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 16px;
    }

    .banner-wrap {
        top: 63px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-social {
        align-items: center;
    }

    .xarxes-socials {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    body{
        background-size: 600px ;
    }
}